package com.sgcc.nfc.lock.domain.usecase

import com.sgcc.nfc.lock.core.network.NetworkResult
import com.sgcc.nfc.lock.domain.model.PagedList
import com.sgcc.nfc.lock.domain.model.Warning
import com.sgcc.nfc.lock.domain.repository.WarningRepository
import javax.inject.Inject

class GetWarningsUseCase @Inject constructor(
    private val repository: WarningRepository
) {
    suspend operator fun invoke(
        page: Int,
        pageSize: Int,
        status: Int? = null,
        type: Int? = null,
        regionId: Long? = null
    ): NetworkResult<PagedList<Warning>> = repository.getWarnings(page, pageSize, status, type, regionId)
}
